package com.shuimin.as.model.manage;

import pond.common.STRING;
import pond.db.Model;

/**
 * Created by Administrator on 2015/9/16.
 */
public class Employee extends Model {

    {
        table("t_employee");
        id("id");
        field("eid");
        field("store");
        field("password");
        field("role");
        field("create_time");
        field("description");
    }

    public boolean verifyPassword(String password) {
        String _password = this.get("password");
        if (STRING.notBlank(password, _password) && password.equals(_password)) {
            return true;
        }
        return false;
    }
}
